<template>
  <div class="page-content">
    <h2>接口地址</h2>
    <p>平台接口地址：<a :href="addr" target="_blank">{{ addr }}</a></p>
  </div>
</template>
<script>
export default {
  data() {
    return {
      addr: ''
    }
  },
  mounted() {
    if (process.client) {
      // console.log(window.location.host, '获取地址栏域名1')
      // console.log(this.$route.fullPath, '获取地址栏参数2')
      this.addr = window.location.protocol + '//' + window.location.hostname + ':8180'
    }
  }
}
</script>
